home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / fsl11.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-03-26  |  1KB  |  70 lines

  1. ::
  2. ::  INSTALL.BAT for Full Screen Login.
  3. ::  Confirm, march 1993.
  4. ::
  5. @echo off
  6. cls
  7. echo\
  8. echo    This procedure installs FSLOGIN on a file server. 
  9. echo\
  10. echo    You need to have supervisor or equivalent rights to be 
  11. echo    able to copy files in the SYS:LOGIN and SYS:PUBLIC
  12. echo    directories.
  13. echo\
  14. echo    Invoke this batch file from the same drive and directory,
  15. echo    where the FSLOGIN.* files currently reside.
  16. echo\   
  17. echo    Continue?       'Y'es or 'N'o.
  18. echo\
  19. yesno
  20. if errorlevel 1 goto continue
  21. goto end
  22. ::
  23. :continue
  24. ::
  25. ::  Check the source directory
  26. ::
  27. if NOT exist fslogin.* goto help_1
  28. ::
  29. ::  Check the target directory (SYS:LOGIN)
  30. ::
  31. if NOT exist sys:login\fslogin.* goto copy_them
  32. ::
  33. ::  Overwrite existing files ?
  34. ::
  35. echo\
  36. echo    FSLOGIN is already installed !
  37. echo\
  38. echo    Do you want to overwrite the files on the server ?
  39. echo\
  40. echo    Continue?       'Y'es or 'N'o.
  41. echo\
  42. yesno
  43. if errorlevel 1 goto overwrite
  44. goto end
  45. ::
  46. :overwrite
  47. ::
  48. flag  sys:login\fslogin.* rw
  49. flag  sys:public\fslogin.com rw
  50. ::
  51. :copy_them
  52. ::
  53. ncopy fslogin.* sys:login
  54. ncopy fslogin.com sys:public
  55. flag  sys:login\fslogin.* ro s
  56. flag  sys:public\fslogin.com ro s
  57. goto end
  58. ::
  59. :help_1
  60. ::
  61. echo\
  62. echo    Make sure that this batch file is executed from the drive
  63. echo    and directory, where the FSLOGIN.* files are residing.
  64. echo\
  65. pause
  66. ::
  67. :end
  68. ::
  69.  
  70.